package com.marion.langchain4jdemo.service;


import com.unionhole.mcp.annotation.MCPService;
import org.springframework.stereotype.Service;

/**
 * 天气服务类
 * @author luomao1@lenovo.com
 * @date 2025/4/21 10:38
 */
@MCPService(packageName = "org.marion.mcpserver4j.mcp")
@Service
public class WeatherService {
//    @Tool(description = "根据城市名称获取天气信息")
    public String getWeather(String cityName) {
        return "City: " + cityName + " Temperature: 25°C"; // 实际项目中可调用天气API
    }
}
